package com.ad_hccm.service.impl;

import com.ad_hccm.dao.PatientUserDao;
import com.ad_hccm.domain.PatientUser;
import com.ad_hccm.service.PatientUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 患者信息ServiceImpl
 */
@Service
public class PatientUserServiceImpl implements PatientUserService {
    @Autowired
    private PatientUserDao dao;

    @Override
    public boolean save(PatientUser domain) {
        return dao.save(domain);
    }

    @Override
    public boolean update(PatientUser domain) {
        return dao.update(domain);
    }

    @Override
    public PatientUser getById(String id) {
        return dao.getById(id);
    }

    @Override
    public List<PatientUser> getAll(String id) {
        return dao.getAll(id);
    }

    @Override
    public List<PatientUser> search(String search,String id) {
        return dao.search(search,id);
    }
}
